home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 114 / PC Guia 114.iso / Software / Produtividade / Apache 2.0.52 / apache_2.0.52-win32-x86-no_ssl.msi / Data.Cab / F277999_mod_autoindex.html.en < prev    next >
Encoding:
Extensible Markup Language  |  2004-03-23  |  48.8 KB  |  868 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
  4.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  5.               This file is generated from xml source: DO NOT EDIT
  6.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  7.       -->
  8. <title>mod_autoindex - Apache HTTP Server</title>
  9. <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
  10. <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
  11. <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
  12. <link href="../images/favicon.ico" rel="shortcut icon" /></head>
  13. <body>
  14. <div id="page-header">
  15. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
  16. <p class="apache">Apache HTTP Server Version 2.0</p>
  17. <img alt="" src="../images/feather.gif" /></div>
  18. <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
  19. <div id="path">
  20. <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="../">Version 2.0</a> > <a href="./">Modules</a></div>
  21. <div id="page-content">
  22. <div id="preamble"><h1>Apache Module mod_autoindex</h1>
  23. <div class="toplang">
  24. <p><span>Available Languages: </span><a href="../en/mod/mod_autoindex.html" title="English"> en </a> |
  25. <a href="../ja/mod/mod_autoindex.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
  26. <a href="../ko/mod/mod_autoindex.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
  27. </div>
  28. <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Generates directory indexes,
  29.     automatically, similar to the Unix <code>ls</code> command or the
  30.     Win32 <code>dir</code> shell command</td></tr>
  31. <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Base</td></tr>
  32. <tr><th><a href="module-dict.html#ModuleIdentifier">ModuleáIdentifier:</a></th><td>autoindex_module</td></tr>
  33. <tr><th><a href="module-dict.html#SourceFile">SourceáFile:</a></th><td>mod_autoindex.c</td></tr></table>
  34. <h3>Summary</h3>
  35.  
  36.       <p>The index of a directory can come from one of two
  37.       sources:</p>
  38.  
  39.     <ul>
  40.       <li>A file written by the user, typically called
  41.       <code>index.html</code>. The <code class="directive"><a href="../mod/mod_dir.html#directoryindex">DirectoryIndex</a></code> directive sets the
  42.       name of this file. This is controlled by
  43.       <code class="module"><a href="../mod/mod_dir.html">mod_dir</a></code>.</li>
  44.  
  45.       <li>Otherwise, a listing generated by the server. The other
  46.       directives control the format of this listing. The <code class="directive"><a href="#addicon">AddIcon</a></code>, <code class="directive"><a href="#addiconbyencoding">AddIconByEncoding</a></code> and
  47.       <code class="directive"><a href="#addiconbytype">AddIconByType</a></code> are
  48.       used to set a list of icons to display for various file types;
  49.       for each file listed, the first icon listed that matches the
  50.       file is displayed. These are controlled by
  51.       <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code>.</li>
  52.     </ul>
  53.     <p>The two functions are separated so that you can completely
  54.     remove (or replace) automatic index generation should you want
  55.     to.</p> 
  56.  
  57.     <p>Automatic index generation is enabled with using
  58.     <code>Options +Indexes</code>. See the 
  59.     <code class="directive"><a href="../mod/core.html#options">Options</a></code> directive for
  60.     more details.</p>
  61.  
  62.     <p>If the <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code> option is given with the <code class="directive"><a href="#indexoptions">IndexOptions</a></code> directive,
  63.     the column headers are links that control the order of the
  64.     display. If you select a header link, the listing will be
  65.     regenerated, sorted by the values in that column. Selecting the
  66.     same header repeatedly toggles between ascending and descending
  67.     order. These column header links are suppressed with
  68.     <code class="directive"><a href="#indexoptions">IndexOptions</a></code> directive's
  69.     <code>SuppressColumnSorting</code> option.</p>
  70.  
  71.     <p>Note that when the display is sorted by "Size", it's the
  72.     <em>actual</em> size of the files that's used, not the
  73.     displayed value - so a 1010-byte file will always be displayed
  74.     before a 1011-byte file (if in ascending order) even though
  75.     they both are shown as "1K".</p>
  76. </div>
  77. <div id="quickview"><h3 class="directives">Directives</h3>
  78. <ul id="toc">
  79. <li><img alt="" src="../images/down.gif" /> <a href="#addalt">AddAlt</a></li>
  80. <li><img alt="" src="../images/down.gif" /> <a href="#addaltbyencoding">AddAltByEncoding</a></li>
  81. <li><img alt="" src="../images/down.gif" /> <a href="#addaltbytype">AddAltByType</a></li>
  82. <li><img alt="" src="../images/down.gif" /> <a href="#adddescription">AddDescription</a></li>
  83. <li><img alt="" src="../images/down.gif" /> <a href="#addicon">AddIcon</a></li>
  84. <li><img alt="" src="../images/down.gif" /> <a href="#addiconbyencoding">AddIconByEncoding</a></li>
  85. <li><img alt="" src="../images/down.gif" /> <a href="#addiconbytype">AddIconByType</a></li>
  86. <li><img alt="" src="../images/down.gif" /> <a href="#defaulticon">DefaultIcon</a></li>
  87. <li><img alt="" src="../images/down.gif" /> <a href="#headername">HeaderName</a></li>
  88. <li><img alt="" src="../images/down.gif" /> <a href="#indexignore">IndexIgnore</a></li>
  89. <li><img alt="" src="../images/down.gif" /> <a href="#indexoptions">IndexOptions</a></li>
  90. <li><img alt="" src="../images/down.gif" /> <a href="#indexorderdefault">IndexOrderDefault</a></li>
  91. <li><img alt="" src="../images/down.gif" /> <a href="#readmename">ReadmeName</a></li>
  92. </ul>
  93. <h3>Topics</h3>
  94. <ul id="topics">
  95. <li><img alt="" src="../images/down.gif" /> <a href="#query">Autoindex Request Query Arguments</a></li>
  96. </ul></div>
  97. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  98. <div class="section">
  99. <h2><a name="query" id="query">Autoindex Request Query Arguments</a></h2>
  100.     
  101.  
  102.     <p>Apache 2.0.23 reorganized the Query Arguments for Column
  103.     Sorting, and introduced an entire group of new query options.
  104.     To effectively eliminate all client control over the output,
  105.     the <code><a href="#indexoptions.ignoreclient">IndexOptions
  106.     IgnoreClient</a></code> option was introduced.</p>
  107.  
  108.     <p>The column sorting headers themselves are self-referencing
  109.     hyperlinks that add the sort query options shown below. Any
  110.     option below may be added to any request for the directory
  111.     resource.</p>
  112.  
  113.     <ul>
  114.       <li><code>C=N</code> sorts the directory by file name</li>
  115.  
  116.       <li><code>C=M</code> sorts the directory by last-modified
  117.       date, then file name</li>
  118.  
  119.       <li><code>C=S</code> sorts the directory by size, then file
  120.       name</li>
  121.  
  122.       <li class="separate"><code>C=D</code> sorts the directory by description, then
  123.       file name</li>
  124.  
  125.       <li><code>O=A</code> sorts the listing in Ascending
  126.       Order</li>
  127.  
  128.       <li class="separate"><code>O=D</code> sorts the listing in Descending
  129.       Order</li>
  130.  
  131.       <li><code>F=0</code> formats the listing as a simple list
  132.       (not FancyIndexed)</li>
  133.  
  134.       <li><code>F=1</code> formats the listing as a FancyIndexed
  135.       list</li>
  136.  
  137.       <li class="separate"><code>F=2</code> formats the listing as an
  138.       HTMLTable FancyIndexed list</li>
  139.  
  140.       <li><code>V=0</code> disables version sorting</li>
  141.  
  142.       <li class="separate"><code>V=1</code> enables version sorting</li>
  143.  
  144.       <li><code>P=<var>pattern</var></code> lists only files matching
  145.       the given <var>pattern</var></li>
  146.     </ul>
  147.  
  148.     <p>Note that the 'P'attern query argument is tested
  149.     <em>after</em> the usual <code class="directive"><a href="#indexignore">IndexIgnore</a></code> directives are processed,
  150.     and all file names are still subjected to the same criteria as
  151.     any other autoindex listing. The Query Arguments parser in
  152.     <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code> will stop abruptly when an unrecognized
  153.     option is encountered. The Query Arguments must be well formed,
  154.     according to the table above.</p>
  155.  
  156.     <p>The simple example below, which can be clipped and saved in
  157.     a header.html file, illustrates these query options. Note that
  158.     the unknown "X" argument, for the submit button, is listed last
  159.     to assure the arguments are all parsed before mod_autoindex
  160.     encounters the X=Go input.</p>
  161.  
  162.     <div class="example"><p><code>
  163.       <form action="" method="get"><br />
  164.       <span class="indent">
  165.         Show me a <select name="F"><br />
  166.         <span class="indent">
  167.           <option value="0"> Plain list</option><br />
  168.           <option value="1" selected="selected"> Fancy list</option><br />
  169.           <option value="2"> Table list</option><br />
  170.         </span>
  171.         </select><br />
  172.         Sorted by <select name="C"><br />
  173.         <span class="indent">
  174.           <option value="N" selected="selected"> Name</option><br />
  175.           <option value="M"> Date Modified</option><br />
  176.           <option value="S"> Size</option><br />
  177.           <option value="D"> Description</option><br />
  178.         </span>
  179.         </select><br />
  180.         <select name="O"><br />
  181.         <span class="indent">
  182.           <option value="A" selected="selected"> Ascending</option><br />
  183.           <option value="D"> Descending</option><br />
  184.         </span>
  185.         </select><br />
  186.         <select name="V"><br />
  187.         <span class="indent">
  188.           <option value="0" selected="selected"> in Normal order</option><br />
  189.           <option value="1"> in Version order</option><br />
  190.         </span>
  191.         </select><br />
  192.         Matching <input type="text" name="P" value="*" /><br />
  193.         <input type="submit" name="X" value="Go" /><br />
  194.       </span>
  195.       </form>
  196.     </code></p></div>
  197.  
  198. </div>
  199. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  200. <div class="directive-section"><h2><a name="AddAlt" id="AddAlt">AddAlt</a> <a name="addalt" id="addalt">Directive</a></h2>
  201. <table class="directive">
  202. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Alternate text to display for a file, instead of an
  203. icon selected by filename</td></tr>
  204. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddAlt <var>string</var> <var>file</var> [<var>file</var>] ...</code></td></tr>
  205. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  206. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  207. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  208. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  209. </table>
  210.     <p><code class="directive">AddAlt</code> provides the alternate text to
  211.     display for a file, instead of an icon, for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  212.     <var>File</var> is a file extension, partial filename, wild-card
  213.     expression or full filename for files to describe.
  214.     If <var>String</var> contains any whitespace, you have to enclose it
  215.     in quotes (<code>"</code> or <code>'</code>). This alternate text
  216.     is displayed if the client is image-incapable, has image loading
  217.     disabled, or fails to retrieve the icon.</p>
  218.  
  219.     <div class="example"><h3>Examples</h3><p><code>
  220.       AddAlt "PDF file" *.pdf<br />
  221.       AddAlt Compressed *.gz *.zip *.Z
  222.     </code></p></div>
  223.  
  224. </div>
  225. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  226. <div class="directive-section"><h2><a name="AddAltByEncoding" id="AddAltByEncoding">AddAltByEncoding</a> <a name="addaltbyencoding" id="addaltbyencoding">Directive</a></h2>
  227. <table class="directive">
  228. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Alternate text to display for a file instead of an icon
  229. selected by MIME-encoding</td></tr>
  230. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddAltByEncoding <var>string</var> <var>MIME-encoding</var>
  231. [<var>MIME-encoding</var>] ...</code></td></tr>
  232. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  233. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  234. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  235. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  236. </table>
  237.     <p><code class="directive">AddAltByEncoding</code> provides the alternate
  238.     text to display for a file, instead of an icon, for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  239.     <var>MIME-encoding</var> is a valid content-encoding, such as
  240.     <code>x-compress</code>. If <var>String</var> contains any whitespace,
  241.     you have to enclose it in quotes (<code>"</code> or <code>'</code>).
  242.     This alternate text is displayed if the client is image-incapable,
  243.     has image loading disabled, or fails to retrieve the icon.</p>
  244.  
  245.     <div class="example"><h3>Example</h3><p><code>
  246.       AddAltByEncoding gzip x-gzip
  247.     </code></p></div>
  248.  
  249. </div>
  250. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  251. <div class="directive-section"><h2><a name="AddAltByType" id="AddAltByType">AddAltByType</a> <a name="addaltbytype" id="addaltbytype">Directive</a></h2>
  252. <table class="directive">
  253. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Alternate text to display for a file, instead of an
  254. icon selected by MIME content-type</td></tr>
  255. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddAltByType <var>string</var> <var>MIME-type</var>
  256. [<var>MIME-type</var>] ...</code></td></tr>
  257. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  258. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  259. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  260. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  261. </table>
  262.     <p><code class="directive">AddAltByType</code> sets the alternate text to
  263.     display for a file, instead of an icon, for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  264.     <var>MIME-type</var> is a valid content-type, such as
  265.     <code>text/html</code>. If <var>String</var> contains any whitespace,
  266.     you have to enclose it in quotes (<code>"</code> or <code>'</code>).
  267.     This alternate text is displayed if the client is image-incapable,
  268.     has image loading disabled, or fails to retrieve the icon.</p>
  269.  
  270.     <div class="example"><h3>Example</h3><p><code>
  271.       AddAltByType 'plain text' text/plain
  272.     </code></p></div>
  273.  
  274. </div>
  275. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  276. <div class="directive-section"><h2><a name="AddDescription" id="AddDescription">AddDescription</a> <a name="adddescription" id="adddescription">Directive</a></h2>
  277. <table class="directive">
  278. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Description to display for a file</td></tr>
  279. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddDescription <var>string file</var> [<var>file</var>] ...</code></td></tr>
  280. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  281. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  282. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  283. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  284. </table>
  285.     <p>This sets the description to display for a file, for
  286.     <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  287.     <var>File</var> is a file extension, partial filename, wild-card
  288.     expression or full filename for files to describe.
  289.     <var>String</var> is enclosed in double quotes (<code>"</code>).</p>
  290.  
  291.     <div class="example"><h3>Example</h3><p><code>
  292.       AddDescription "The planet Mars" /web/pics/mars.gif
  293.     </code></p></div>
  294.  
  295.     <p>The typical, default description field is 23 bytes wide. 6
  296.     more bytes are added by the <code><a href="#indexoptions.suppressicon">IndexOptions SuppressIcon</a></code> option, 7 bytes are
  297.     added by the <code><a href="#indexoptions.suppresssize">IndexOptions SuppressSize</a></code> option, and 19 bytes are
  298.     added by the <code><a href="#indexoptions.suppresslastmodified">IndexOptions SuppressLastModified</a></code> option.
  299.     Therefore, the widest default the description column is ever
  300.     assigned is 55 bytes.</p>
  301.  
  302.     <p>See the <a href="#indexoptions.descriptionwidth">DescriptionWidth</a> <code class="directive"><a href="#indexoptions">IndexOptions</a></code> keyword for details on overriding the size
  303.     of this column, or allowing descriptions of unlimited length.</p>
  304.  
  305.     <div class="note"><h3>Caution</h3>
  306.       <p>Descriptive text defined with <code class="directive">AddDescription</code>
  307.       may contain HTML markup, such as tags and character entities. If the
  308.       width of the description column should happen to truncate a tagged
  309.       element (such as cutting off the end of a bolded phrase), the
  310.       results may affect the rest of the directory listing.</p>
  311.     </div>
  312.  
  313. </div>
  314. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  315. <div class="directive-section"><h2><a name="AddIcon" id="AddIcon">AddIcon</a> <a name="addicon" id="addicon">Directive</a></h2>
  316. <table class="directive">
  317. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Icon to display for a file selected by name</td></tr>
  318. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddIcon <var>icon</var> <var>name</var> [<var>name</var>]
  319. ...</code></td></tr>
  320. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  321. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  322. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  323. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  324. </table>
  325.     <p>This sets the icon to display next to a file ending in
  326.     <var>name</var> for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>. <var>Icon</var> is either a (%-escaped)
  327.     relative URL to the icon, or of the format <code>
  328.     (<var>alttext</var>,<var>url</var>)</code> where <var>alttext</var>
  329.     is the text tag given for an icon for non-graphical browsers.</p>
  330.  
  331.     <p><var>Name</var> is either <code>^^DIRECTORY^^</code> for directories,
  332.     <code>^^BLANKICON^^</code> for blank lines (to format the list
  333.     correctly), a file extension, a wildcard expression, a partial
  334.     filename or a complete filename.</p>
  335.  
  336.     <div class="example"><h3>Examples</h3><p><code>
  337.       AddIcon (IMG,/icons/image.xbm) .gif .jpg .xbm<br />
  338.       AddIcon /icons/dir.xbm ^^DIRECTORY^^<br />
  339.       AddIcon /icons/backup.xbm *~
  340.     </code></p></div>
  341.     
  342.     <p><code class="directive"><a href="#addiconbytype">AddIconByType</a></code>
  343.     should be used in preference to <code class="directive">AddIcon</code>,
  344.     when possible.</p>
  345.  
  346. </div>
  347. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  348. <div class="directive-section"><h2><a name="AddIconByEncoding" id="AddIconByEncoding">AddIconByEncoding</a> <a name="addiconbyencoding" id="addiconbyencoding">Directive</a></h2>
  349. <table class="directive">
  350. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Icon to display next to files selected by MIME 
  351. content-encoding</td></tr>
  352. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddIconByEncoding <var>icon</var> <var>MIME-encoding</var>
  353. [<var>MIME-encoding</var>] ...</code></td></tr>
  354. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  355. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  356. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  357. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  358. </table>
  359.     <p>This sets the icon to display next to files with <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  360.     <var>Icon</var> is either a (%-escaped) relative URL to the icon,
  361.     or of the format <code>(<var>alttext</var>,<var>url</var>)</code>
  362.     where <var>alttext</var> is the text tag given for an icon for
  363.     non-graphical browsers.</p>
  364.  
  365.     <p><var>MIME-encoding</var> is a wildcard expression matching
  366.     required the content-encoding.</p>
  367.  
  368.     <div class="example"><h3>Example</h3><p><code>
  369.       AddIconByEncoding /icons/compress.xbm x-compress
  370.     </code></p></div>
  371.  
  372. </div>
  373. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  374. <div class="directive-section"><h2><a name="AddIconByType" id="AddIconByType">AddIconByType</a> <a name="addiconbytype" id="addiconbytype">Directive</a></h2>
  375. <table class="directive">
  376. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Icon to display next to files selected by MIME 
  377. content-type</td></tr>
  378. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddIconByType <var>icon</var> <var>MIME-type</var>
  379. [<var>MIME-type</var>] ...</code></td></tr>
  380. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  381. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  382. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  383. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  384. </table>
  385.     <p>This sets the icon to display next to files of type
  386.     <var>MIME-type</var> for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  387.     <var>Icon</var> is either a (%-escaped) relative URL to the icon,
  388.     or of the format <code>(<var>alttext</var>,<var>url</var>)</code>
  389.     where <var>alttext</var> is the text tag given for an icon for
  390.     non-graphical browsers.</p>
  391.  
  392.     <p><var>MIME-type</var> is a wildcard expression matching
  393.     required the mime types.</p>
  394.  
  395.     <div class="example"><h3>Example</h3><p><code>
  396.       AddIconByType (IMG,/icons/image.xbm) image/*
  397.     </code></p></div>
  398.  
  399. </div>
  400. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  401. <div class="directive-section"><h2><a name="DefaultIcon" id="DefaultIcon">DefaultIcon</a> <a name="defaulticon" id="defaulticon">Directive</a></h2>
  402. <table class="directive">
  403. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Icon to display for files when no specific icon is
  404. configured</td></tr>
  405. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>DefaultIcon <var>url-path</var></code></td></tr>
  406. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  407. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  408. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  409. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  410. </table>
  411.     <p>The <code class="directive">DefaultIcon</code> directive sets the icon
  412.     to display for files when no specific icon is known, for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  413.     <var>Url-path</var> is a (%-escaped) relative URL to the icon.</p>
  414.  
  415.     <div class="example"><h3>Example</h3><p><code>
  416.       DefaultIcon /icon/unknown.xbm
  417.     </code></p></div>
  418.  
  419. </div>
  420. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  421. <div class="directive-section"><h2><a name="HeaderName" id="HeaderName">HeaderName</a> <a name="headername" id="headername">Directive</a></h2>
  422. <table class="directive">
  423. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Name of the file that will be inserted at the top
  424. of the index listing</td></tr>
  425. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>HeaderName <var>filename</var></code></td></tr>
  426. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  427. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  428. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  429. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  430. </table>
  431.     <p>The <code class="directive">HeaderName</code> directive sets the name
  432.     of the file that will be inserted at the top of the index
  433.     listing. <var>Filename</var> is the name of the file to include.</p>
  434.  
  435.     <div class="example"><h3>Example</h3><p><code>
  436.       HeaderName HEADER.html
  437.     </code></p></div>
  438.  
  439.     <div class="note">
  440.       <p>Both HeaderName and <code class="directive"><a href="#readmename">ReadmeName</a></code> now treat
  441.       <var>Filename</var> as a URI path relative to the one used to
  442.       access the directory being indexed. If <var>Filename</var> begins
  443.       with a slash, it will be taken to be relative to the <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>.</p>
  444.  
  445.       <div class="example"><h3>Example</h3><p><code>
  446.         HeaderName /include/HEADER.html
  447.       </code></p></div>
  448.       
  449.       <p><var>Filename</var> must resolve to a document with a major
  450.       content type of <code>text/*</code> (<em>e.g.</em>,
  451.       <code>text/html</code>, <code>text/plain</code>, etc.). This means
  452.       that <var>filename</var> may refer to a CGI script if the script's
  453.       actual file type (as opposed to its output) is marked as
  454.       <code>text/html</code> such as with a directive like:</p>
  455.  
  456.       <div class="example"><p><code>
  457.         AddType text/html .cgi
  458.       </code></p></div>
  459.  
  460.       <p><a href="../content-negotiation.html">Content negotiation</a>
  461.       will be performed if <code class="directive"><a href="../mod/core.html#options">Options</a></code>
  462.       <code>MultiViews</code> is in effect. If <var>filename</var> resolves
  463.       to a static <code>text/html</code> document (not a CGI script) and
  464.       either one of the <code class="directive"><a href="../mod/core.html#options">options</a></code>
  465.       <code>Includes</code> or <code>IncludesNOEXEC</code> is enabled,
  466.       the file will be processed for server-side includes (see the
  467.       <code class="module"><a href="../mod/mod_include.html">mod_include</a></code> documentation).</p>
  468.     </div>
  469.  
  470.     <p>If the file specified by <code class="directive">HeaderName</code> contains
  471.     the beginnings of an HTML document (<html>, <head>, etc.)
  472.     then you will probably want to set <a href="#indexoptions.suppresshtmlpreamble"><code>IndexOptions
  473.     +SuppressHTMLPreamble</code></a>, so that these tags are not
  474.     repeated.</p>
  475.  
  476. </div>
  477. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  478. <div class="directive-section"><h2><a name="IndexIgnore" id="IndexIgnore">IndexIgnore</a> <a name="indexignore" id="indexignore">Directive</a></h2>
  479. <table class="directive">
  480. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Adds to the list of files to hide when listing 
  481. a directory</td></tr>
  482. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>IndexIgnore <var>file</var> [<var>file</var>] ...</code></td></tr>
  483. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  484. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  485. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  486. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  487. </table>
  488.     <p>The <code class="directive">IndexIgnore</code> directive adds to the
  489.     list of files to hide when listing a directory. <var>File</var> is a
  490.     shell-style wildcard expression or full
  491.     filename. Multiple IndexIgnore directives add
  492.     to the list, rather than the replacing the list of ignored
  493.     files. By default, the list contains <code>.</code> (the current
  494.     directory).</p>
  495.  
  496.     <div class="example"><p><code>
  497.       IndexIgnore README .htaccess *.bak *~
  498.     </code></p></div>
  499.  
  500. </div>
  501. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  502. <div class="directive-section"><h2><a name="IndexOptions" id="IndexOptions">IndexOptions</a> <a name="indexoptions" id="indexoptions">Directive</a></h2>
  503. <table class="directive">
  504. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Various configuration settings for directory 
  505. indexing</td></tr>
  506. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>IndexOptions  [+|-]<var>option</var> [[+|-]<var>option</var>]
  507. ...</code></td></tr>
  508. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  509. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  510. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  511. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  512. </table>
  513.     <p>The <code class="directive">IndexOptions</code> directive specifies the
  514.     behavior of the directory indexing. <var>Option</var> can be one
  515.     of</p>
  516.  
  517.     <dl>
  518.       <dt><a name="indexoptions.descriptionwidth" id="indexoptions.descriptionwidth">DescriptionWidth=[<var>n</var> | *]</a> (<em>Apache 2.0.23 and
  519.       later</em>)</dt>
  520.  
  521.       <dd>The <code>DescriptionWidth</code> keyword allows you to
  522.       specify the width of the description column in
  523.       characters.</dd>
  524.  
  525.       <dd><code>-DescriptionWidth</code> (or unset) allows
  526.       <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code> to calculate the best width.</dd>
  527.  
  528.       <dd><code>DescriptionWidth=<var>n</var></code> fixes the column width to
  529.       <var>n</var> bytes wide.</dd>
  530.  
  531.       <dd><code>DescriptionWidth=*</code> grows the column to the
  532.       width necessary to accommodate the longest description
  533.       string.</dd>
  534.  
  535.       <dd><strong>See the section on <code class="directive"><a href="#adddescription">AddDescription</a></code> for dangers
  536.       inherent in truncating descriptions.</strong></dd>
  537.  
  538.       <dt><a name="indexoptions.fancyindexing" id="indexoptions.fancyindexing">FancyIndexing</a></dt>
  539.  
  540.       <dd>This turns on fancy indexing of directories.</dd>
  541.  
  542.       <dt><a name="indexoptions.foldersfirst" id="indexoptions.foldersfirst">FoldersFirst</a> (<em>Apache
  543.       2.0.23 and later</em>)</dt>
  544.  
  545.       <dd>If this option is enabled, subdirectory listings will
  546.       <em>always</em> appear first, followed by normal files in the
  547.       directory. The listing is basically broken into two
  548.       components, the files and the subdirectories, and each is
  549.       sorted separately and then displayed subdirectories-first.
  550.       For instance, if the sort order is descending by name, and
  551.       <code>FoldersFirst</code> is enabled, subdirectory
  552.       <code>Zed</code> will be listed before subdirectory
  553.       <code>Beta</code>, which will be listed before normal files
  554.       <code>Gamma</code> and <code>Alpha</code>. <strong>This option
  555.       only has an effect if <a href="#indexoptions.fancyindexing"><code>FancyIndexing</code></a> is also enabled.</strong></dd>
  556.  
  557.       <dt><a name="indexoptions.htmltable" id="indexoptions.htmltable">HTMLTable</a> (<em>Experimental,
  558.       Apache 2.0.23 and later</em>)</dt>
  559.  
  560.       <dd>This experimental option with FancyIndexing constructs a
  561.       simple table for the fancy directory listing. Note this will
  562.       confuse older browsers. It is particularly necessary if file
  563.       names or description text will alternate between
  564.       left-to-right and right-to-left reading order, as can happen
  565.       on WinNT or other utf-8 enabled platforms.</dd>
  566.  
  567.       <dt><a name="indexoptions.iconsarelinks" id="indexoptions.iconsarelinks">IconsAreLinks</a></dt>
  568.  
  569.       <dd>This makes the icons part of the anchor for the filename, for
  570.       fancy indexing.</dd>
  571.  
  572.       <dt><a name="indexoptions.iconheight" id="indexoptions.iconheight">IconHeight[=<var>pixels</var>]</a></dt>
  573.  
  574.       <dd>Presence of this option, when used with IconWidth, will cause
  575.       the server to include <code>height</code> and <code>width</code>
  576.       attributes in the <code>img</code> tag for the file icon. This allows
  577.       browser to precalculate the page layout without having to wait until
  578.       all the images have been loaded. If no value is given for the option,
  579.       it defaults to the standard height of the icons supplied with the Apache
  580.       software.</dd>
  581.  
  582.       <dt><a name="indexoptions.iconwidth" id="indexoptions.iconwidth">IconWidth[=<var>pixels</var>]</a></dt>
  583.  
  584.       <dd>Presence of this option, when used with <code>IconHeight</code>,
  585.       will cause the server to include <code>height</code> and
  586.       <code>width</code> attributes in the <code>img</code> tag for
  587.       the file icon. This allows browser to precalculate the page
  588.       layout without having to wait until all the images have been
  589.       loaded. If no value is given for the option, it defaults to
  590.       the standard width of the icons supplied with the Apache
  591.       software.</dd>
  592.  
  593.       <dt><a name="indexoptions.ignorecase" id="indexoptions.ignorecase">IgnoreCase</a></dt>
  594.  
  595.       <dd>If this option is enabled, names are sorted in a case-insensitive 
  596.       manner.  For instance, if the sort order is ascending by name, and 
  597.       IgnoreCase is enabled, file Zeta  will be listed after file alfa 
  598.       (Note: file GAMMA will always be listed before file gamma). </dd>
  599.  
  600.       <dt><a name="indexoptions.ignoreclient" id="indexoptions.ignoreclient">IgnoreClient</a></dt>
  601.  
  602.       <dd>This option causes <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code> to ignore all
  603.       query variables from the client, including sort order (implies
  604.       <code><a href="#indexoptions.suppresscolumnsorting">SuppressColumnSorting</a></code>.)</dd>
  605.  
  606.       <dt><a name="indexoptions.namewidth" id="indexoptions.namewidth">NameWidth=[<var>n</var>
  607.                | *]</a></dt>
  608.  
  609.       <dd>The <code>NameWidth</code> keyword allows you to specify the width
  610.       of the filename column in bytes.</dd>
  611.  
  612.       <dd><code>-NameWidth</code> (or unset) allows <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code> to calculate the best width.</dd>
  613.  
  614.       <dd><code>NameWidth=<var>n</var></code> fixes the column width to
  615.       <var>n</var> bytes wide.</dd>
  616.  
  617.       <dd><code>NameWidth=*</code> grows the column to the necessary
  618.       width.</dd>
  619.  
  620.       <dt><a name="indexoptions.scanhtmltitles" id="indexoptions.scanhtmltitles">ScanHTMLTitles</a></dt>
  621.  
  622.       <dd>This enables the extraction of the title from HTML documents
  623.       for fancy indexing. If the file does not have a description
  624.       given by <code class="directive"><a href="#adddescription">AddDescription</a></code>
  625.       then httpd will read the document for the value of the
  626.       <code>title</code> element. This is CPU and disk intensive.</dd>
  627.  
  628.       <dt><a name="indexoptions.suppresscolumnsorting" id="indexoptions.suppresscolumnsorting">SuppressColumnSorting</a></dt>
  629.  
  630.       <dd>If specified, Apache will not make the column headings in a
  631.       FancyIndexed directory listing into links for sorting. The
  632.       default behavior is for them to be links; selecting the
  633.       column heading will sort the directory listing by the values
  634.       in that column. <strong>Prior to Apache 2.0.23, this also
  635.       disabled parsing the Query Arguments for the sort
  636.       string.</strong> That behavior is now controlled by <a href="#indexoptions.ignoreclient">IndexOptions
  637.       IgnoreClient</a> in Apache 2.0.23.</dd>
  638.  
  639.       <dt><a name="indexoptions.suppressdescription" id="indexoptions.suppressdescription">SuppressDescription</a></dt>
  640.  
  641.       <dd>This will suppress the file description in fancy indexing
  642.       listings. By default, no file descriptions are defined, and
  643.       so the use of this option will regain 23 characters of screen
  644.       space to use for something else. See <code class="directive"><a href="#adddescription">AddDescription</a></code> for information about setting the file
  645.       description. See also the <code><a href="#indexoptions.descriptionwidth">DescriptionWidth</a></code>
  646.       index option to limit the size of the description column.</dd>
  647.  
  648.       <dt><a name="indexoptions.suppresshtmlpreamble" id="indexoptions.suppresshtmlpreamble">SuppressHTMLPreamble</a></dt>
  649.  
  650.       <dd>If the directory actually contains a file specified by the
  651.       <code class="directive"><a href="#headername">HeaderName</a></code>
  652.       directive, the module usually includes the contents of the file
  653.       after a standard HTML preamble (<code><html></code>,
  654.       <code><head></code>, <em>et cetera</em>). The
  655.       <code>SuppressHTMLPreamble</code> option disables this behaviour,
  656.       causing the module to start the display with the header file
  657.       contents. The header file must contain appropriate HTML instructions
  658.       in this case. If there is no header file, the preamble is generated
  659.       as usual.</dd>
  660.  
  661.       <dt><a name="indexoptions.suppressicon" id="indexoptions.suppressicon">SuppressIcon</a> (<em>Apache
  662.       2.0.23 and later</em>)</dt>
  663.  
  664.       <dd>This will suppress the icon in fancy indexing listings.
  665.       Combining both <code>SuppressIcon</code> and
  666.       <code>SuppressRules</code> yields proper HTML 3.2 output, which
  667.       by the final specification prohibits <code>img</code> and
  668.       <code>hr</code> elements from the <code>pre</code> block (used to
  669.       format FancyIndexed listings.)</dd>
  670.  
  671.       <dt><a name="indexoptions.suppresslastmodified" id="indexoptions.suppresslastmodified">SuppressLastModified</a></dt>
  672.  
  673.       <dd>This will suppress the display of the last modification date,
  674.       in fancy indexing listings.</dd>
  675.  
  676.       <dt><a name="indexoptions.suppressrules" id="indexoptions.suppressrules">SuppressRules</a>
  677.       (<em>Apache 2.0.23 and later</em>)</dt>
  678.  
  679.       <dd>This will suppress the horizontal rule lines (<code>hr</code>
  680.       elements) in directory listings. Combining both <code>SuppressIcon</code> and
  681.       <code>SuppressRules</code> yields proper HTML 3.2 output, which
  682.       by the final specification prohibits <code>img</code> and
  683.       <code>hr</code> elements from the <code>pre</code> block (used to
  684.       format FancyIndexed listings.)</dd>
  685.  
  686.       <dt><a name="indexoptions.suppresssize" id="indexoptions.suppresssize">SuppressSize</a></dt>
  687.  
  688.       <dd>This will suppress the file size in fancy indexing listings.</dd>
  689.  
  690.       <dt><a name="indexoptions.trackmodified" id="indexoptions.trackmodified">TrackModified</a> (<em>Apache
  691.       2.0.23 and later</em>)</dt>
  692.  
  693.       <dd>This returns the Last-Modified and ETag values for the listed
  694.       directory in the HTTP header. It is only valid if the
  695.       operating system and file system return appropriate stat()
  696.       results. Some Unix systems do so, as do OS2's JFS and Win32's
  697.       NTFS volumes. OS2 and Win32 FAT volumes, for example, do not.
  698.       Once this feature is enabled, the client or proxy can track
  699.       changes to the list of files when they perform a <code>HEAD</code>
  700.       request. Note some operating systems correctly track new and
  701.       removed files, but do not track changes for sizes or dates of
  702.       the files within the directory. <strong>Changes to the size
  703.       or date stamp of an existing file will not update the
  704.       Last-Modified header on all Unix platforms.</strong> If this
  705.       is a concern, leave this option disabled.</dd>
  706.  
  707.       <dt><a name="indexoptions.versionsort" id="indexoptions.versionsort">VersionSort</a>
  708.       (<em>Apache 2.0a3 and later</em>)</dt>
  709.  
  710.       <dd>The <code>VersionSort</code> keyword causes files containing
  711.       version numbers to sort in a natural way. Strings are sorted as
  712.       usual, except that substrings of digits in the name and
  713.       description are compared according to their numeric value.
  714.  
  715.       <div class="example"><h3>Example:</h3><p><code>
  716.         foo-1.7<br />
  717.         foo-1.7.2<br />
  718.         foo-1.7.12<br />
  719.         foo-1.8.2<br />
  720.         foo-1.8.2a<br />
  721.         foo-1.12
  722.       </code></p></div>
  723.  
  724.       <p>If the number starts with a zero, then it is considered to
  725.       be a fraction:</p>
  726.  
  727.       <div class="example"><p><code>
  728.         foo-1.001<br />
  729.         foo-1.002<br />
  730.         foo-1.030<br />
  731.         foo-1.04
  732.       </code></p></div>
  733.       </dd>
  734.  
  735.       <dt><a name="indexoptions.xhtml" id="indexoptions.xhtml">XHTML</a>
  736.       (<em>Apache 2.0.49 and later</em>)</dt>
  737.  
  738.       <dd>The <code>XHTML</code> keyword forces <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code>
  739.       to emit XHTML 1.0 code instead of HTML 3.2.</dd>
  740.     </dl>
  741.  
  742.    
  743.    <dl><dt>Incremental IndexOptions</dt>
  744.    <dd>
  745.      <p>Apache 1.3.3 introduced some significant changes in the
  746.      handling of <code class="directive">IndexOptions</code> directives. In
  747.      particular:</p>
  748.  
  749.      <ul>
  750.      <li>Multiple <code class="directive">IndexOptions</code> directives for a
  751.      single directory are now merged together. The result of:
  752.  
  753.      <div class="example"><p><code>
  754.        <Directory /foo>
  755.        <span class="indent">
  756.          IndexOptions HTMLTable<br />
  757.          IndexOptions SuppressColumnsorting
  758.        </span>
  759.        </Directory>
  760.      </code></p></div>
  761.  
  762.      <p>will be the equivalent of</p>
  763.  
  764.      <div class="example"><p><code>
  765.        IndexOptions HTMLTable SuppressColumnsorting
  766.      </code></p></div>
  767.      </li>
  768.  
  769.      <li>The addition of the incremental syntax (<em>i.e.</em>, prefixing
  770.      keywords with <code>+</code> or <code>-</code>).</li>
  771.      </ul>
  772.  
  773.      <p>Whenever a '+' or '-' prefixed keyword is encountered, it
  774.      is applied to the current <code class="directive">IndexOptions</code>
  775.      settings (which may have been inherited from an upper-level
  776.      directory). However, whenever an unprefixed keyword is processed, it
  777.      clears all inherited options and any incremental settings encountered
  778.      so far. Consider the following example:</p>
  779.  
  780.      <div class="example"><p><code>
  781.        IndexOptions +ScanHTMLTitles -IconsAreLinks FancyIndexing<br />
  782.        IndexOptions +SuppressSize
  783.      </code></p></div>
  784.  
  785.      <p>The net effect is equivalent to <code>IndexOptions FancyIndexing
  786.      +SuppressSize</code>, because the unprefixed <code>FancyIndexing</code>
  787.      discarded the incremental keywords before it, but allowed them to
  788.      start accumulating again afterward.</p>
  789.  
  790.      <p>To unconditionally set the <code class="directive">IndexOptions</code> for
  791.      a particular directory, clearing the inherited settings, specify
  792.      keywords without any <code>+</code> or <code>-</code> prefixes.</p>
  793.    </dd>
  794.    </dl>
  795.  
  796. </div>
  797. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  798. <div class="directive-section"><h2><a name="IndexOrderDefault" id="IndexOrderDefault">IndexOrderDefault</a> <a name="indexorderdefault" id="indexorderdefault">Directive</a></h2>
  799. <table class="directive">
  800. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Sets the default ordering of the directory index</td></tr>
  801. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>IndexOrderDefault Ascending|Descending
  802. Name|Date|Size|Description</code></td></tr>
  803. <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>IndexOrderDefault Ascending Name</code></td></tr>
  804. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  805. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  806. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  807. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  808. </table>
  809.     <p>The <code class="directive">IndexOrderDefault</code> directive is used
  810.     in combination with the <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code> index option. By default, fancyindexed
  811.     directory listings are displayed in ascending order by filename; the
  812.     <code class="directive">IndexOrderDefault</code> allows you to change this
  813.     initial display order.</p>
  814.  
  815.     <p><code class="directive">IndexOrderDefault</code> takes two
  816.     arguments. The first must be either <code>Ascending</code> or
  817.     <code>Descending</code>, indicating the direction of the sort.
  818.     The second argument must be one of the keywords <code>Name</code>,
  819.     <code>Date</code>, <code>Size</code>, or <code>Description</code>,
  820.     and identifies the primary key. The secondary key is
  821.     <em>always</em> the ascending filename.</p>
  822.  
  823.     <p>You can force a directory listing to only be displayed in a
  824.     particular order by combining this directive with the <code><a href="#indexoptions.suppresscolumnsorting">SuppressColumnSorting</a></code> index option; this will prevent
  825.     the client from requesting the directory listing in a different
  826.     order.</p>
  827.  
  828. </div>
  829. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  830. <div class="directive-section"><h2><a name="ReadmeName" id="ReadmeName">ReadmeName</a> <a name="readmename" id="readmename">Directive</a></h2>
  831. <table class="directive">
  832. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Name of the file that will be inserted at the end
  833. of the index listing</td></tr>
  834. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>ReadmeName <var>filename</var></code></td></tr>
  835. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  836. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  837. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  838. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  839. </table>
  840.     <p>The <code class="directive">ReadmeName</code> directive sets the name
  841.     of the file that will be appended to the end of the index
  842.     listing. <var>Filename</var> is the name of the file to include, and
  843.     is taken to be relative to the location being indexed. If
  844.     <var>Filename</var> begins with a slash, it will be taken to be
  845.     relative to the <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>.
  846.     </p>
  847.  
  848.     <div class="example"><h3>Example</h3><p><code>
  849.       ReadmeName FOOTER.html
  850.     </code></p></div>
  851.  
  852.     <div class="example"><h3>Example 2</h3><p><code>
  853.       ReadmeName /include/FOOTER.html
  854.     </code></p></div>
  855.  
  856.     <p>See also <code class="directive"><a href="#headername">HeaderName</a></code>, where this behavior is described in greater
  857.     detail.</p>
  858.  
  859. </div>
  860. </div>
  861. <div class="bottomlang">
  862. <p><span>Available Languages: </span><a href="../en/mod/mod_autoindex.html" title="English"> en </a> |
  863. <a href="../ja/mod/mod_autoindex.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
  864. <a href="../ko/mod/mod_autoindex.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
  865. </div><div id="footer">
  866. <p class="apache">Copyright 1999-2004 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
  867. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
  868. </body></html>